package tests_xml_parser;

import org.testng.Assert;
import org.testng.annotations.Test;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.DataProvider;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeSuite;
import org.testng.annotations.AfterSuite;

public class NewTestNG
{
	@Test (groups = "asy")
	void test1()
	{
		Assert.assertEquals(1, 1);
	}
	
	@Test ()
	void test2()
	{
		Assert.assertEquals(1, 1);
	}
	
	
	@Test(dataProvider = "dp")
	public void f(Integer n, String s)
	{
	}

	@BeforeMethod
	public void beforeMethod()
	{
	}

	@AfterMethod
	public void afterMethod()
	{
	}

	@DataProvider
	public Object[][] dp()
	{
		return new Object[][] { new Object[] { 1, "a" }, new Object[] { 2, "b" }, };
	}

	@BeforeClass
	public void beforeClass()
	{
	}

	@AfterClass
	public void afterClass()
	{
	}

	@BeforeTest(groups = "asy")
	public void beforeTest()
	{
		System.out.println("oto asy");
	}

	@AfterTest
	public void afterTest()
	{
	}

	@BeforeSuite
	public void beforeSuite()
	{
	}

	@AfterSuite
	public void afterSuite()
	{
	}

}
